#@adminLayout() #define main()
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-dict-edit" >
			<input name="id"  type="hidden"  />
			<div class="form-group">
				<label class="col-sm-3 control-label ">代码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="code" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">主表：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="main_table" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">主字段：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="main_field" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="status" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">展示页面：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="detail_url" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">APP展示页面：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="app_url" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="desc" class="form-control"></textarea>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		var prefix = "#(ctx)/jwflow";
		var id='#(id)';
    	$(function(){

            $('#form-dict-edit').loadForm(prefix+'/getData?id='+id);

    	});
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/save", $('#form-dict-edit').serialize());
	        }
	    }
	</script>
</body>
#end
